//
//  Game.m
//  SportsApp
//
//  Created by Stephen Wiens on 2012-11-13.
//

#import "Game.h"

@implementation Game
//NSString *date;//date
//NSString *team;//team
//NSString *Opponent;//o:team
//int points;//points
//int goals;//goals
//int assists;//assists
//int PIM;//penalty minutes
//int PM;//plus minus
//int PPG;//power play goals
//int SOG;//shots on goal

-(id)CreateGame:(NSString *)thedate Andteam:(NSString *)theteam Andopponent:(NSString *)theopponent Andpoints:(int)thepoints Andgoals:(int)thegoals Andassists:(int)theassists AndPIM:(int)thePIM Andplus_minus:(int)theplus_minus Andpowerplay:(int)thepowerplay AndSOG:(int)theSOG
{
        //initilaize the member varilables
        date = thedate;
        team = theteam;
        Opponent = theopponent;
        points = thepoints;
        goals = thegoals;
        assists = theassists;
        PIM = thePIM;
        PM = theplus_minus;
        PPG = thepowerplay;
        SOG = theSOG;
    return self;
}

-(id)init
{
    date = NULL;
    team = NULL;
    Opponent = NULL;
    points = -1;
    goals = -1;
    assists = -1;
    PIM = -1;
    PM = -1;
    PPG = -1;
    SOG = -1;
    
    return self;
}

-(NSString *)getDate
{
    return date;
}
-(NSString *)getTeam
{
    return team;
}
-(NSString *)getOpponent
{
    return Opponent;
}
-(int) getPoints
{
    return points;
}
-(int) getGoals
{
    return goals;
}
-(int) getAssists
{
    return assists;
}
-(int) getPIM
{
    return PIM;
}
-(int) getplus_minus
{
    return PM;
}
-(int) getpowerplay
{
    return PPG;
}
-(int) getSOG
{
    return SOG;
}
-(void)setDate:(NSString *)thedate
{
    date=thedate;
}
-(void)setTeam:(NSString *)theteam
{
    team=theteam;
}
-(void)setOpponent:(NSString *)theOpponent
{
    Opponent=theOpponent;
}
-(void) setPoints:(int)thePoints
{
    points=thePoints;
}
-(void) setGoals:(int)theGoals
{
    goals=theGoals;
}
-(void) setAssists:(int)theAssists
{
    assists=theAssists;
}
-(void) setPIM:(int)thePIM
{
    PIM=thePIM;
}
-(void) setplus_minus:(int)theplus_minus
{
    PM=theplus_minus;
}
-(void) setpowerplay:(int)thepowerplay
{
    PPG=thepowerplay;
}
-(void) setSOG:(int)theSOG
{
    SOG=theSOG;
}



@end
